<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" targetNamespace="Examples"
  xmlns:tns="Examples">

  <message id="messageId" name="newMessage" />

  <process id="process" isExecutable="true">
    <startEvent id="theStart" />

    <sequenceFlow sourceRef="theStart" targetRef="fork" />

    <parallelGateway id="fork" />

    <sequenceFlow sourceRef="fork" targetRef="task1" />
    <userTask id="task1" />
    <sequenceFlow sourceRef="task1" targetRef="theEnd1" />
    <endEvent id="theEnd1" />

    <sequenceFlow sourceRef="fork" targetRef="task2" />
    <userTask id="task2" />
    <sequenceFlow sourceRef="task2" targetRef="theEnd2" />
    <endEvent id="theEnd2" />

    <boundaryEvent id="boundaryEvent" attachedToRef="task2">
      <messageEventDefinition messageRef="messageId" />
    </boundaryEvent>

    <sequenceFlow sourceRef="boundaryEvent" targetRef="taskAfterBoundaryEvent" />

    <userTask id="taskAfterBoundaryEvent" />

    <sequenceFlow sourceRef="taskAfterBoundaryEvent" targetRef="theEnd3" />

    <endEvent id="theEnd3" />

  </process>

</definitions>